import { get, post } from "@/utils/http";
//Waterdrop开始
//审核
export const reviewApplyApi = (params) => post(`/touchApi/review/apply`, params);
export const reviewPageApi = (params) => post(`/touchApi/review/list`, params);
export const reviewDetailApi = (params) => post(`/touchApi/review/detail`, params);
export const reviewUpdateApi = (params) => post(`/touchApi/review/update`, params);
export const reviewDelteApi = (params) => post(`/touchApi/review/delte`, params);

//空间
export const spacePageApi = (params) => post(`/touchApi/space/list`, params);
export const spaceUpdateApi = (params) => post(`/touchApi/space/update`, params);
export const spaceInsertApi = (params) => post(`/touchApi/space/insert`, params);
export const spaceDetailApi = (params) => post(`/touchApi/space/detail`, params);
export const spaceDetailBySpaceIdApi = (params) => post(`/touchApi/space/detail/space_id`, params);
//空间用户
export const spaceUserInsertListApi = (params) => post(`/touchApi/space/user/insert_list`, params);
export const pageSpaceUserApi = (params) => post(`/touchApi/space/user/list/space_id`, params);
export const updateSpaceUserApi = (params, headers) => post(`/touchApi/space/user/update`, params, headers);
export const deleteSpaceUserApi = (params, headers) => post(`/touchApi/space/user/delete`, params, headers);
export const insertListApi = (params, headers) => post(`/touchApi/space/user/insert/batch`, params, headers);
export const detailApi = (params) => post(`/touchApi/space/user/detail`, params);
export const getUserRolelApi = (params) => post(`/touchApi/space/user/roles`, params);

//任务分页
export const touchListApi = (params, headers) => post(`/touchApi/touch/list`, params, headers);
//新建
export const touchInsertApi = (params, headers) => post(`/touchApi/touch/insert`, params, headers);
//预览任务
export const previewTouchApi = (params, headers) => post(`/touchApi/touch/preview`, params, headers);

//任务详情
export const touchDetailTaskApi = (params) => post(`/touchApi/touch/detail`, params);
//子任务
export const touchDetailSubTaskApi = (params) => post(`/touchApi/touch/detail/sub_task`, params);

//提交
export const commitTouchApi = (params, headers) => post(`/touchApi/touch/commit`, params, headers);
export const detailTaskApi = (params) => post(`/touchApi/touch/detail`, params);
export const touchStartApi = (params, headers) => post(`/touchApi/touch/start`, params, headers);

//DC主体
export const dcSenderListApi = (params) => get(`/touchApi/dc/sender/list`, params);
//邮件主体
export const msgSenderListApi = (params) => get(`/touchApi/msg/sender/list`, params);
//DC表单模版list
export const dcFromListApi = (params) => get(`/touchApi/dc/form/list`, params);
//DC表单模版详情
export const dcFormDetailApi = (params) => post(`/touchApi/dc/form/detail`, params);
//邮件消息模版列表
export const msgTemplateListApi = (params) => get(`/touchApi/msg/template/list`, params);
//邮件消息模版详情
export const msgTemplateDetailApi = (params) => post(`/touchApi/msg/template/detail`, params);
